package cn.kgc.kgde.bookstore.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author myt
 * @since 2022-05-31
 */
@TableName("address")
@ApiModel(value = "Address对象", description = "")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("地址id")
    @TableId(value = "addressId", type = IdType.AUTO)
    private Long addressId;

    @ApiModelProperty("收件人")
    private String reciever;

    @ApiModelProperty("收件人电话")
    private String recieverPhone;

    @ApiModelProperty("收件人地址")
    private String recieverAddress;

    @ApiModelProperty("用户id")
    private String userCode;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }
    public String getReciever() {
        return reciever;
    }

    public void setReciever(String reciever) {
        this.reciever = reciever;
    }
    public String getRecieverPhone() {
        return recieverPhone;
    }

    public void setRecieverPhone(String recieverPhone) {
        this.recieverPhone = recieverPhone;
    }
    public String getRecieverAddress() {
        return recieverAddress;
    }

    public void setRecieverAddress(String recieverAddress) {
        this.recieverAddress = recieverAddress;
    }
    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    @Override
    public String toString() {
        return "Address{" +
            "addressId=" + addressId +
            ", reciever=" + reciever +
            ", recieverPhone=" + recieverPhone +
            ", recieverAddress=" + recieverAddress +
            ", userCode=" + userCode +
        "}";
    }
}
